<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- CSRF Token -->
    <meta name="csrf-token" content="{{ csrf_token() }}">

    <title>@yield('title', config('app.name'))</title>

    <!-- Styles -->
    <link href="{{asset("bootstrap/dist/css/bootstrap.min.css")}}" rel="stylesheet">
    <script src="{{asset("bootstrap/dist/js/jquery.js")}}"></script>
@yield('app-head')
<!-- Scripts -->
    <script>
        window.Laravel = <?php echo json_encode([
            'csrfToken' => csrf_token(),
        ]); ?>;

        var serverTimestamp = '{{time()}}'; //服务器时间
    </script>
</head>
<body>
<main id="main">
    <div class="panel panel-default">
        <div class="panel-body">
            @if (isset($errors) && $errors->any())
                @foreach ($errors->all() as $error)
                    <div class="alert alert-danger">
                        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                            <span aria-hidden="true">&times;</span>
                        </button>
                        <b>错误提示：</b> {{ $error }}
                    </div>
                @endforeach
            @endif
            @if(!empty(session('successMsg')))
                <div class="alert alert-info">
                    {{session('successMsg')}}
                </div>
            @endif
            @yield('content')
        </div>
    </div>
</main>
<!-- Scripts -->
@yield('app-footer')

</body>
</html>
